﻿//Copyright md bravo - feel free to modify this code in any way - just leave this notice ;)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShareCDN.Engine.Data
{
	public class DownloadHandle : IDisposable
	{
		public string ContentType { get; set; }
		public string FileName { get; set; }
		public System.IO.Stream Stream { get; set; }

		public List<IDisposable> DisposableObjects = new List<IDisposable>();

		public void Dispose()
		{
			foreach (var item in DisposableObjects)
			{
				item.Dispose();
			}
		}
	}
}
